<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%
	pageContext.setAttribute("APP_PATH", request.getContextPath());
%>

<title>飞机票审批</title>
<script type="text/javascript" src="${APP_PATH }/static/js/jquery.min.js"></script>
<link type="text/css" rel="stylesheet" href="${APP_PATH }/static/css/blue/pageCommon.css" />


<script type="text/javascript">

$(function(){
	
	$("#TableData").delegate('a[name=operaPass]','click',function(){
		var id = $(this).next().val();
		window.location.href= "${APP_PATH}/operaController/planeOperaPass/"+id;
	});
	
	$("#TableData").delegate('a[name=operaDown]','click',function(){
		var id = $(this).next().val();
		window.location.href= "${APP_PATH}/operaController/planeOperaDown/"+id;
	});
	
});


</script>
</head>
<body>

<div id="Title_bar">
    <div id="Title_bar_Head">
        <div id="Title_Head"></div>
        <div id="Title"><!--页面标题-->
            <img border="0" width="13" height="13" src="${APP_PATH }/static/css/images/title_arrow.gif"/> 飞机票审批
        </div>
        <div id="Title_End"></div>
    </div>
</div>

<div id="MainArea">
    <table cellspacing="0" cellpadding="0" class="TableStyle">
       
        <!-- 表头-->
        <thead>
            <tr align=center valign=middle id=TableTitle>
            	<td width="150px">订单编号</td>
				<td width="150px">订单金额</td>
                <td width="150px">联系电话</td>
                <td width="200px">审批标准</td>
                <td width="150px">审批</td>
            </tr>
        </thead>

		<!--显示数据列表-->
        <tbody id="TableData" class="dataContainer" datakey="processDefList">
        	<c:forEach items="${planeOrders }" var="planeOrder">
				<tr class="TableDetail1 template">
						<td align="CENTER">${planeOrder.orderId }</td>
						<td align="CENTER">${planeOrder.orderPrice }</td>
						<td align="CENTER">${planeOrder.linkPhone }</td>
						<td align="CENTER">${planeOrder.operaRuleContent }</td>
						<td align="CENTER">
							<c:if test="${planeOrder.orderStatus ==0}">
								<span>
									<a name="operaPass" "style="text-decoration: none;color: green;" href="javascript:void(0);">通过</a>
									<input type="hidden" value="${planeOrder.id }">
								</span>
								
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								<span>
									<a name="operaDown" "style="text-decoration: none;color: orange;" href="javascript:void(0);">不通过</a>
									<input type="hidden" value="${planeOrder.id }">
								</span>
							</c:if>
							<c:if test="${planeOrder.orderStatus ==1}">
								<span style="color: blue;">
									审核通过
								</span>
							</c:if>
							<c:if test="${planeOrder.orderStatus ==2}">
								<span style="color: red;">
									审核未通过
								</span>
							</c:if>
						</td>
				</tr>
			</c:forEach>
        </tbody>
    </table>
    
    <!-- 其他功能超链接 -->
    <div>
    	<br/>速行飞机票审批业务
    </div>
</div>


</body>
</html>
